//
//  changjingCell.m
//  Hand-held_kitchen
//
//  Created by 张张烨 on 16/1/22.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "changjingCell.h"

@implementation changjingCell
-(void)dealloc
{
    [_tupian release];
    [_zi release];
    [_new1 release];
    [_cai release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.tupian = [[UIImageView alloc]init];
        [self.contentView addSubview:_tupian];
        [_tupian release];
        
        self.cai = [[UILabel alloc]init];
        _cai.font = [UIFont systemFontOfSize:12];
        _cai.textColor = [UIColor whiteColor];
        _cai.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:_cai];
        [_cai release];
        
        self.zi = [[UILabel alloc]init];
        _zi.font = [UIFont systemFontOfSize:14];
        _zi.textColor = [UIColor whiteColor];
        _zi.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:_zi];
        
        self.new1 = [[UIImageView alloc]init];
        [self.contentView addSubview:_new1];
        [_new1 release];
        
        
    }
    return self;
}

-(void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    
    _tupian.frame = CGRectMake(0, 0,125 , 180);
    _zi.frame = CGRectMake(0, 120, 125, 30);
    _cai.frame = CGRectMake(0, 145, 125, 17);
    _new1.frame = CGRectMake(97, 0, 30, 30);
}



@end
